//
//  Ornamentation_controller.h
//  VivaModa
//
//  Created by Owly MacBook on 02.02.13.
//  Copyright (c) 2013 private_busines. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ornament_cell.h"
#import <SDWebImg/SDWebImage/UIImageView+WebCache.h>
#import "define_data.h"
#import "QuartzCore/QuartzCore.h"
#import "DejalActivityView.h"
#import "DetailProduct.h"

typedef enum{
    sort_name = 1,
    sort_price = 2,
    sort_availability = 3
} sortOrnament;

typedef enum{
    increase_up = 1,
    increase_down = 3
} increase;

typedef enum{
    ornament = 1,
    ornament_podbor = 2,
    ornament_stock = 3
} categoria;



@class DetailProduct;

@interface Ornamentation_controller : UIViewController{
    Reachability* internetReach;
}

@property(nonatomic,retain)IBOutlet UITableView *tableView;

@property(nonatomic,retain)IBOutlet UIButton *button_sort_up;
@property(nonatomic,retain)IBOutlet UIButton *button_sort_down;
@property(nonatomic,retain) NSString *name_categories;
@property(nonatomic) int id_categories;
@property (nonatomic, retain) NSMutableData *infoData;
@property (nonatomic, retain) DetailProduct *detail_product;
@property (nonatomic) BOOL needReload;

@property (nonatomic) categoria type_categoria;
@property (nonatomic,retain) NSString *key_podbor;

@property(nonatomic,retain)IBOutlet UIButton *button_sort_name;
@property(nonatomic,retain)IBOutlet UIButton *button_sort_avaliable;
@property(nonatomic,retain)IBOutlet UIButton *button_sort_price;



-(IBAction)sortButtonPress:(id)sender;
@end
